<?php
class DataException extends Exception {
	public function __construct($msg = '', $code = 0) {
		parent::__construct($msg, $code);
	}
	
	public static function throwEx($msg = '', $code = 0) {
		throw new self($msg, $code);
	}
	
	public function __toString() {
		return parent::__toString();
	}
}
?>